﻿namespace LinkedTU.Models
{
    using System;
    using System.Collections.Generic;

    public class Group : BaseDbEntity
    {
        private ICollection<GroupPost> posts;
        private ICollection<GroupMembership> groupMembers;

        public Group()
        {
            this.posts = new HashSet<GroupPost>();
            this.groupMembers = new HashSet<GroupMembership>();
        }

        public int GroupId { get; set; }

        public string Name { get; set; }

        public string Description { get; set; }

        public virtual ICollection<GroupPost> Posts
        {
            get { return this.posts; }
            set { this.posts = value; }
        }

        public virtual ICollection<GroupMembership> GroupMembers
        {
            get { return this.groupMembers; }
            set { this.groupMembers = value; }
        }
    }
}
